package factory;

import duck.manager.ActorManager;
import duck.manager.DepartmentManager;
import duck.manager.MyAttendManager;
import duck.manager.ProudManager;
import duck.manager.impl.ActorManagerImpl;
import duck.manager.impl.DepartmentManagerImpl;
import duck.manager.impl.MyAttendManagerImpl;
import duck.manager.impl.ProudManagerImpl;
import duck.manager.MessageManager;
import duck.manager.impl.MessageManagerImpl;

public final class ManagerFactory {
	private static  ActorManager am = null;

	public static ActorManager getActorManager() {
		if (am == null) {
			am = new ActorManagerImpl();
			return am;
		} else {
			return am;
		}
	}
	
	public static DepartmentManager getDepartmentManager(){
		return new DepartmentManagerImpl();
	}
	
	public static MyAttendManager getMyAttendManager(){
		return new MyAttendManagerImpl();
	}
	
	public static MessageManager getMessageManger(){
		return new MessageManagerImpl();
	}
	
	public static ProudManager getProudManager(){
		return new ProudManagerImpl();
	}
}
